/**
 * Wuhan University Library for Cryptography (WULC) is an ongoing and portable 
 * cryptographic toolkit developed by Cryptography and Blockchain Technology
 * Laboratory · Wuhan University. 
 * This file is part of WULC. 
 * @copyright Copyright (c) 2018-2023 WULC authors
 * 
 * @file user_table.java
 * @brief to descirbe the entity of user_table
 * 
 * @author Qiao Hongyi (974446987@qq.com)
 * @version 0.1.1
 * @date 2023-01-16
 * 
 * @ingroup {group}
 */
package pemks.entity;

// User.java
public class User {
    private String username;
    private String password;
    private String pkG1;
    private String pkG2;
    private String pkH;
    private String role;

    // 构造器
    public User() {}

    public User(String username, String password, String pkG1, String pkG2, String pkH) {
        this.username = username;
        this.password = password;
        this.pkG1 = pkG1;
        this.pkG2 = pkG2;
        this.pkH = pkH;
        this.role = "user"; // 默认普通用户
    }

    // Getters and Setters
    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }

    public String getPkG1() { return pkG1; }
    public void setPkG1(String pkG1) { this.pkG1 = pkG1; }

    public String getPkG2() { return pkG2; }
    public void setPkG2(String pkG2) { this.pkG2 = pkG2; }

    public String getPkH() { return pkH; }
    public void setPkH(String pkH) { this.pkH = pkH; }

    public String getRole() { return role; }
    public void setRole(String role) { this.role = role; }
}
